package com.gitee.jisong.spring.ctrl

import com.gitee.jisong.exception.IllegalParamException
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.bind.annotation.RestControllerAdvice

@RestControllerAdvice
class WebAdviceCtrl {


    @ExceptionHandler(IllegalParamException::class)
    fun illegaeParamException(){

    }

    @ExceptionHandler
    fun commonException(){

    }
}